{{define "Title"}}测试设置{{end}}
{{define "Content"}}

<div class="container-fluid">
<form class="form-horizontal" action="/settest" method="POST">
  <fieldset>
    <legend><b>测试设置</b></legend>
    {{if .error}}<div class="alert alert-error"><b>错误: </b>{{.error | html}}</div>
    {{else }}
      {{if .flash}}<div class="alert alert-success"><b>提示: </b>{{.flash | html}}</div>{{end}}
    {{end}}
    <div class="control-group">
      <label class="control-label">物料&nbsp;</label>
      <div class="control">
        <select id="item" name="item" style="background-color: #FFFFD0" onmousewheel="return false">
          <option value="">
          {{range .items}}
            <option value="{{.Item | html}}">{{.Item | html}}  |  {{.Desc | html}}
          {{end}}
        </select> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">站点&nbsp;</label>
      <div class="control">
        <select id="station" name="station" style="background-color: #FFFFD0" onmousewheel="return false">
          <option value="">
          {{range .stations}}
            <option value="{{.Name | html}}">{{.Name | html}}
          {{end}}
        </select> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">最大测试次数&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="times" name="times" value="1">
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">测试设置</button>
    </div>
  </fieldset>
</form>
</div>
  
{{end}}